home *** CD-ROM | disk | FTP | other *** search
- Visio Search / Replace Add-on v1.1
-
- This is a Visual Basic Add-on for Visio v2 that performs a Search and
- Replace on the current document. It has the following features:
-
- Can search and replace text in the Text, Name, Data1, Data2, and Data3
- fields of any shape.
-
- Can search and replace the size (in points) stored in the Size Cell of
- the Character Row of the shape sheet for any shape.
-
- Scope of search can be:
- Current Selection
- Current Page
- All Pages
-
- To use, copy VISIOSR.EXE into the \Visio\Add-ons directory. I built
- this using Microsoft Visual Basic Standard Edition. I have no idea if
- there are DLLs or other files needed that are not installed by Visio
- 2.0. Since the add-ons included with Visio 2.0 did not include any
- DLLs, I am assuming that none are required for this either. If you have
- a problem, let me know and I will try to update the ZIP file to include
- whatever is needed. The VISIOSR.MAK file included makes some
- assumptions about where things are located. If you want to use the
- source, take a look and fix the disk and path stuff as required.
-
- After starting Visio (as you must since the Add-ons directory is only
- scanned at program start), load the document you wish to change, and
- select Windows Run Add-on from the menus. Select VISIOSR.EXE and click
- OK. A self-explanatory form will appear. You must enter text to
- search-for, but can leave the replace-by field blank if you wish to
- delete the search-for text. If you have a current selection, that will
- be the default scope-of-search. Otherwise, that option is disabled and
- the current-page is the default. The default field-to-search is TheText,
- but you can select any or all of the fields.
-
- Click OK to begin the search or Cancel to return to Visio.
-
- Once a match is found, a Confirmation form will appear. You can elect
- to change the current item, skip the current item, replace all items
- without further confirmation, or cancel the search and return to Visio.
-
- VISIOSR will find only the first instance of the search-for string in each
- selected field-to-search. That is, if a shape's Text is
-
- "Hi to you and yours"
-
- a search-for string of "you" will find "you", but not "yours".
-
- All searches are case-sensitive.
-
- Once you are done and back in Visio, the Edit Undo function will undo the
- changes, one field of one shape at a time. Thus, it may require a lot of
- Undos to Undo a single search and replace.
-
- This program and its documentation are copyright (c) 1993 by
- Dennis K. Fitzgerald. Anyone may freely use and/or distribute them as
- long as this documentation and copyright notice is included.
-
- Please let me know of your experiences, problems, ideas for improvement.
- My Compuserve ID is: Dennis K. Fitzgerald 72627,1442.
-
- v1.1----------------------------
- Fixed problem where Name field was not handled same as others.
- Added "passive" help. Amazingly easy with Visual Basic!
- Cleaned up and included source code.
-